Component({
    properties: {},
    data: {
        hint: "向右拖动滑块验证",
        sysW: wx.getSystemInfoSync().windowWidth,
        xAxial: 0,
        x: 0,
        w: .8 * wx.getSystemInfoSync().windowWidth - 50,
        cssAnimation: "translate3d(0, 0, 0)",
        succeedMsg: "",
        pullStatus: !0
    },
    methods: {
        moveFun: function(t) {
            this.data.pullStatus && (this.data.x = t.changedTouches[0].clientX - (.1 * this.data.sysW + 25), 
            this.data.x >= this.data.w ? this.data.xAxial = this.data.w : this.data.xAxial = this.data.x, 
            this.data.x < 25 && (this.data.xAxial = 0), this.data.cssAnimation = "translate3d(" + this.data.xAxial + "px, 0, 0)", 
            this.setData({
                cssAnimation: this.data.cssAnimation
            }));
        },
        endFun: function() {
            var t = {};
            this.data.x >= this.data.w ? (this.data.xAxial = this.data.w, this.data.succeedMsg = "验证成功", 
            t.msg = !0, this.data.pullStatus = !1) : (this.data.xAxial = 0, this.data.succeedMsg = "", 
            t.msg = !1), this.triggerEvent("myevent", t), this.data.cssAnimation = "translate3d(" + this.data.xAxial + "px, 0, 0)", 
            this.setData({
                succeedMsg: this.data.succeedMsg,
                cssAnimation: this.data.cssAnimation
            });
        }
    }
});